package com.jeasonzhao.report.dataset;

import java.io.Serializable;

public class SortSetting implements Serializable
{
	private static final long serialVersionUID = 1L;
    private int m_nColumnIndex = -1;
    private boolean m_isAscend = true;
    public SortSetting()
    {
        super();
    }

    public SortSetting(int nColumnIndex)
    {
        super();
        this.m_nColumnIndex = nColumnIndex;
    }

    public SortSetting(int nColumnIndex,boolean ascend)
    {
        super();
        this.m_isAscend = ascend;
        this.m_nColumnIndex = nColumnIndex;
    }

    public void setColumnIndex(int nColumnIndex)
    {
        this.m_nColumnIndex = nColumnIndex;
    }

    public void setAscend(boolean ascend)
    {
        this.m_isAscend = ascend;
    }

    public int getColumnIndex()
    {
        return m_nColumnIndex;
    }

    public boolean isAscend()
    {
        return m_isAscend;
    }
}
